<?php $tab_color = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.tabcolor.color','#EAEAEA');
	  $tab_background = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.tab.backgroudcolor','#0E95C9');
     $activetab_backgroudcolor = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.activetab.backgroudcolor','#E4E4E4');
     $admintab_color = Engine_Api::_()->getApi('settings','core')->getSetting('webmix.admintab.color','#8F8F8F');
?>
<style type="text/css">
    .tab {
        float:left;
    }
    .webmix_tab_icon{
        float:left;
        width:5000px;
        
    }
    #tab-bar-inner .tab{
		background-color: <?php echo $tab_background;?>
    }
    #tab-bar-inner .tab.active, #tab-bar-inner .tab:hover, #tab.add:hover/*, html > body div.back:hover, html > body div.forth:hover*/{
		 background-color: <?php echo $activetab_backgroudcolor;?>
    }
    /*#tab-bar-inner #tab-container{
		background-color: <?php echo $tab_background;?>
	}*/
	html > body div.back, html > body div.back:hover{
    	/*background-color: <?php echo $tab_background;?>*/
    }
    #tab-bar-inner .admintab{
    	background-color: <?php echo $admintab_color;?>
 	}
	html > body div.forth,html > body div.forth:hover, html > body div.back,html > body div.back:hover, #tab.add{
		background-color: <?php echo $tab_background;?>;
	}		
</style>


<div id="tabs" class="webmix_view_tab">
    <div >
	    <div id="tab-bar-inner" >
            <div class="tab-scroller back"></div>
            <div id="tab-container" >
                <div class="webmix_tab_icon">
                    <?php $viewer = Engine_Api::_()->user()->getViewer();
                          $webmixs = $this->webmixs;
                            
                    ?>
                    <?php foreach($webmixs as $item):?>
        			<a id="tab-<?php echo $item->webmix_id ?>" class="desktop-tab alpha tab webmix_custom_tab_js  editable private-tab  not-draggable tab_webmix_id-<?php echo $item->webmix_id?> webmix_type-<?php echo $item->type?> webmix_parent-<?php echo $item->parent_id?> webmix_default-<?php echo $item->default?> <?php echo ($item->type == 'system' || !empty($item->parent_id))? 'admintab':''?>" href="javascript:void(0);">
                        <?php if($item->type == 'system' || !empty($item->parent_id)):?><span class="lock_webmix_system"></span><?php endif;?>
                        <span title="<?php echo $item->title;?>" style="color:<?php echo $tab_color?>" class="name"><?php echo $item->title;?></span>
                        <span class="handle"></span>
                    </a>
                    <?php endforeach;?>
                    <div class="add not-draggable" id="tab" onclick=" tab_custom.scrollToEl(this); customShowBox('<?php echo  $this->url(array('action'=>'create','format'=>'smoothbox'),'webmix_special',true)?>')">
        				<span class="handle" style="display: block;width: 77px;">Create</span>
        			</div>
                </div>
                
                
    			<div class="clearR"></div>
    		</div>
            <div class="tab-scroller forth"></div>
            <div class="tab-scroller search_webmix_view_form" style="display:none">
                <input id="search_tool_bar"type="text"/>
                <span id="search_tool_bar_icon">icon</span>
            </div>
      </div>
    </div>
    
    
</div>


